package com.maozzi.common.exception;

/**
 * 业务异常
 *
 * @author maozi
 */
public class BizException extends RuntimeException {
    /**
     * 错误码
     */
    private String code;

    public BizException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
